import { join } from 'path';
import { Module } from '@nestjs/common';
import { ServeStaticModule } from '@nestjs/serve-static';
import { AppController } from './app.controller';
import { AppService } from './app.service';

// 子模块
import { VerificationModule } from './verification/index.module';
import { BusinessModule } from './business/index.module';

@Module({
  imports: [
    ServeStaticModule.forRoot({ rootPath: join(__dirname, '../static') }),
    VerificationModule,
    BusinessModule,
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
